﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;

namespace UnitTest.Other
{
    public class c1:Object
    {
        public c1()
        {
            Console.WriteLine("父父父父父父父父父类构无参");
        }
        public c1(string p)
        {
            Console.WriteLine("父类");
        }
    }
    public class c2:c1
    {
        public c2():base("ddddd") {
            Console.WriteLine("子子子子子子子子子类构无参");
        }
        public c2(string dd)
        {
            Console.WriteLine("子类");
        }
    }

    public static class ExamineCacheModel
    {
        public static ConcurrentDictionary<string, string> _lpDic = new System.Collections.Concurrent.ConcurrentDictionary<string, string>();
    }
    public class TestOther
    {


        public void test()
        {
            ExamineCacheModel._lpDic[Guid.NewGuid().ToString()] = Guid.NewGuid().ToString();
            Console.WriteLine(ExamineCacheModel._lpDic.Count);
        }


        public byte[] IntToByte(int number)
        {
            return BitConverter.GetBytes(number);
        }

       public  int BytesToInt(byte[] bytes)
        {
            return BitConverter.ToInt32(bytes, 0);
        }

    }
}
